from django.urls import path, include
# media文件夹导入模块
from django.views.static import serve
from django.conf import settings

urlpatterns = [
    path('api/v1/', include('user.urls')),
    # 配置media文件夹的路由
    path('media/<path:path>', serve, {'document_root': settings.MEDIA_ROOT})
]
